package Jwt;

import org.junit.jupiter.api.Test;
import world.snowcrystal.utils.JwtUtils;

import java.util.Arrays;


public class Te {

    @Test
    public void test() {
        String tok = JwtUtils.makeJWT("tianqing","123123");
        System.out.println(tok);
        String[] strings = JwtUtils.verifyJwt("eyJhbGciOiJIUzM4NCIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ3d3cuc25vd2NyeXN0YWwud29ybGQiLCJzdWIiOiJ3d3cuc25vd2NyeXN0YWwud29ybGQiLCJhdWQiOlsid3d3LnNub3djcnlzdGFsLndvcmxkIiwid3d3LnNub3djcnlzdGFsLmNuIl0sImV4cCI6MTcyMzExNDY0MiwiaWF0IjoxNzIzMDI4MjQyLCJ1c2VybmFtZSI6InRpYW5xaW5nIiwicGFzc3dvcmQiOiIkMmEkMTAkT2RLTzRpTy5VdmIyeHRyYmRLV2p2ZWdiaWxuQUNoSlc1ZHFQcktCY1JyMFBFWlBqdFdZN2EifQ.q8HajkThmeXAKCGLfnVBa8-7LdcCfChy7XRCOQ-aofjwzxI-SEJLH7wNJhDCyVQF");
        System.out.println(Arrays.toString(strings));


    }
}
